package pl.tssoft.math.core.exceptions;

/**
 *
 * @author tserafin
 */
public class CalculationException extends MathException {

    private String exceptionElement;

    public CalculationException(int position, ErrorCode code) {
        this(position, code, null);
    }

    public CalculationException(int position, ErrorCode code, String exceptionElement) {
        super(position, code);
        this.exceptionElement = exceptionElement;
    }

    public String getExceptionElement() {
        return exceptionElement;
    }
}
